﻿<%@ Page Language="C#" AutoEventWireup="true"  MasterPageFile="~/MasterPage.master" CodeFile="StockAdmin.aspx.cs" Inherits="Stock_StockAdmin" %>

<%@ Register Src="../UserControls/Rubros.ascx" TagName="Rubros" TagPrefix="uc1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1"  ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    &nbsp;<div style="text-align: center; vertical-align: text-top;">
        
            <table class="tablaForm" style="width: 100%; text-align: left">
                <tr>
                    <td align="right" class="tdInfo" colspan="3">
                        Operaciones por Art&iacute;culo</td>
                </tr>
                <tr>
                    <td colspan="2">
                        <table class="tablaForm" style="width: 100%">
                            <tr>
                                <td colspan="3" style="text-align: center">
                                    <uc1:Rubros ID="Rubros1" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 33%; text-align: center">
                                    <asp:RadioButton ID="rdbCompras" runat="server" AutoPostBack="True" OnCheckedChanged="rdbCompras_CheckedChanged"
                                        Text="Compras" /></td>
                                <td style="width: 34%; text-align: center">
                                    <asp:RadioButton ID="rdbVentas" runat="server" AutoPostBack="True" OnCheckedChanged="rdbVentas_CheckedChanged"
                                        Text="Ventas" /></td>
                                <td style="width: 33%; text-align: center">
                                    <asp:RadioButton ID="rdbBalance" runat="server" AutoPostBack="True" OnCheckedChanged="rdbBalance_CheckedChanged"
                                        Text="Balance" /></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="tdBotones" colspan="2">
                        &nbsp;
                        <asp:Button ID="btnCancelar" runat="server" OnClick="btnCancelar_Click" Text="Cancelar"
                            Width="75px" />
                        <asp:Button ID="btnBuscar" runat="server" OnClick="btnBuscar_Click" Text="Buscar"
                            Width="75px" /></td>
                </tr>
                <tr>
                    <td class="tdForm" colspan="3" style="width: 100%">
                        &nbsp;<asp:GridView ID="gvStock" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                            BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px"
                            CellPadding="3" DataKeyNames="Id_Articulo" GridLines="Vertical" OnPageIndexChanging="gvStock_PageIndexChanging"
                            OnRowDataBound="gvStock_RowDataBound" OnSelectedIndexChanged="gvStock_SelectedIndexChanged"
                            PageSize="15" Width="100%">
                            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                            <Columns>
                                <asp:TemplateField HeaderText="C&#243;digo">
                                    <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:Label ID="Código" runat="server" Text='<%# Bind("Id_Articulo") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Right" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Articulo">
                                    <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:Label ID="Articulo" runat="server" Text='<%# Bind("Articulo") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Precio">
                                    <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:Label ID="Precio" runat="server" Text='<%# Bind("Precio", "{0:F2}") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Right" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Saldo">
                                    <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:Label ID="Saldo" runat="server" Text='<%# Bind("Saldo", "{0:F2}") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Right" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Punto Pedido">
                                    <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:Label ID="PuntoPedido" runat="server" Text='<%# Bind("PuntoPedido") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Right" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Cod.Barras">
                                    <HeaderStyle ForeColor="White" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:Label ID="CodBarra" runat="server" Text='<%# Bind("CodigoBarra") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Lotes">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkLotes" runat="server" Enabled="false" />
                                    </ItemTemplate>
                                    <ControlStyle BackColor="Lime" BorderColor="Black" />
                                </asp:TemplateField>
                                <asp:TemplateField ShowHeader="False">
                                    <HeaderStyle ForeColor="White" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Select"
                                            Text="Seleccionar"></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                            </Columns>
                            <RowStyle BackColor="#EEEEEE" ForeColor="Black" HorizontalAlign="Center" />
                            <EditRowStyle Wrap="True" />
                            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#325FB9" Font-Bold="True" Font-Names="Arial Rounded MT Bold"
                                ForeColor="White" />
                            <AlternatingRowStyle BackColor="Gainsboro" />
                        </asp:GridView>
                    </td>
                </tr>
            </table>

<br />
    </div>
</asp:Content>
